package uk.co.droidinactu.common.model;

import android.content.ContentValues;

public class Preference extends AbstractTypeObject {

	private String name = "";
	private String value = "";

	public Preference() {
	}

	public Preference(final String nme, final String val) {
		this.name = nme;
		this.value = val;
	}

	@Override
	public ContentValues getContentValues() {
		final ContentValues map = new ContentValues();
		map.put(AbstractTypeObject.FIELD_NAME_TYPE_NAME, this.name);
		map.put(AbstractTypeObject.FIELD_NAME_TYPE_VALUE, this.value);
		return map;
	}

	@Override
	public String getTableName() {
		return "preferences";
	}

	@Override
	public String toString() {
		final String meStr = this.name + "=" + this.value;
		return meStr;
	}

}
